package com.letfox.log.example;


public class LogExample {

//	private LOGAuth logAuth;
//	private LOGOperation logOperation;
//	
//	private AuthLogMapper authLogDao;
//	private OperationLogMapper operationLogDao;
//	
//	@Test
//	public void addAuthLog(){
//		SqlSession session = MyBatisUtil.getSqlSession(true);
//		try {
//			logAuth = new LOGAuth();
//			logAuth.setAccountID("test");
//			logAuth.setAuthType(AuthLogEnums.AuthType.LOGIN_LOG_TYPE.getName());
//			logAuth.setAuthTypeCode(AuthLogEnums.AuthType.LOGIN_LOG_TYPE.getValue());
//			logAuth.setAuthState(AuthLogEnums.AuthState.LOGIN_LOG_STATE_SUCESS.getName());
//			logAuth.setAuthStateCode(AuthLogEnums.AuthState.LOGIN_LOG_STATE_SUCESS.getValue());
//			logAuth.setAuthWay(AuthLogEnums.AuthWay.LOGIN_LOG_WAY_WEB.getName());
//			logAuth.setAuthWayCode(AuthLogEnums.AuthWay.LOGIN_LOG_WAY_WEB.getValue());
//			logAuth.setAuthIP("192.168.0.1");
//			logAuth.setOpTime(new Date());
//			logAuth.setRemark("TESTTEST");
//			
//			authLogDao = session.getMapper(AuthLogMapper.class);
//			authLogDao.insert(logAuth);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//	}
	
}
